<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

        <div class="form">
            <div class="form_header">
                <span style="float: left">LIST CONTACTS</span>
                <br style="clear:both;"/>
            </div>
        </div>
        <div style="margin-top: 10px;width: 100%;">
    <table class="list" style="width: 100%;">
        <tr>
            <th>FULLNAME</th>
            <th>EMAIL</th>
            <th>ADDRESS</th>
            <th>PHONE</th>
            <th>FUNCTION</th>
        </tr>
        <logic:iterate id="contactitem" name="contactlist" scope="request" indexId="i">
        <tr class="${(i%2==0)?"odd":"even"}">
            <td class="left">${contactitem.fullname}</td>
            <td class="center">${contactitem.email}</td>
            <td class="center">${contactitem.address}</td>
            <td class="left">${contactitem.phone}</td>
  
            <td class="center">
                <a class="edit" href="contactedit.do?contactId=${contactitem.contactId}" title="Edit Contact"><em></em></a>
                <a class="del" href="contactdelete.do?contactId=${contactitem.contactId}" title="Delete Contact" onclick="return confirm('Do you want to delete this contact ?')"><em></em></a>
            </td>
        </tr>
        </logic:iterate>

    </table>
</div>
